package main

import (
	"fmt"
	"time"
)

var c, c1 = make(chan struct{}), make(chan struct{})

func i() {

	j := 0
	for {
		<-c1
		fmt.Println(j)
		j++
		c <- struct{}{}
	}
}

func zi() {

	str := "ABCDEFGHIJKLMNOPQRSTUVWXYZ"

	for i := 0; i < len(str); i++ {

		<-c
		fmt.Printf("%c-", str[i])
		c1 <- struct{}{}
	}
}

func main() {

	go zi()
	go i()

	c <- struct{}{}

	time.Sleep(time.Minute)

}
